import request from '@/utils/http/http'
import requestMock from '@/utils/http/httpMock'

// 获取home页面三级分类列表
export const reqGetCategoryList = () => {
  // 一定要记得return结果，不然拿到的就是undefined

  return request.get('/product/getBaseCategoryList')

  // get请求的另外一种写法：
  // return request({
  //   method: 'get',
  //   url: '/product/getBaseCategoryList'
  // })
}

// 获取首页轮播图的模拟数据的请求
export const reqGetHomeBannersList = () => {
  return requestMock.get('/getHomeBanners')
}

// 获取首页楼层的模拟数据的请求
export const reqGetHomeFloorsList = () => {
  return requestMock.get('/getHomeFloors')
}
